<template>
	<div>
		<van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
			<van-swipe-item v-for="item in list" :key='item.id' class='box'>
				<img :src="item.image" />
				<div class="up">
					<p class="text5">{{ item.title }}</p>
					<p class="text6">{{ item.hint }}</p>
				</div>
			</van-swipe-item>
		</van-swipe>
	</div>
</template>

<script>
	export default {
		props: ['list'],
	}
</script>

<style>
	.box{
		position: relative;
	}
	.up{
		position: absolute;
		width: 100%;
		/* height: 72px; */
		background: rgba(0,0,0,0.5);
		bottom: 0;
		color: #FFFFFF;
	}
	.text5{
		margin: 0!important;
		padding: 0 0 8px 18px;
		/* font-size: 18px; */
	}
	.text6{
		margin: 0!important;
		padding: 0 0 8px 18px;
		font-size: 12px;
	}
	.box img {
		width: 100%;
		height: 290px;
	}
	.van-swipe__indicators{
		left: 320px!important;
	}
	.van-swipe__indicator--active{
		border-radius: 25%!important;
		width: 20px!important;
	}
</style>
